package website.lhc.chapter6;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/1/5 11:18
 * @version: 1.0
 */
@Slf4j
public class StopState implements State {


    @Override
    public String toString() {
        return "stop";
    }

    @Override
    public void action(Context context) {
        log.info("set {}", this.getClass().getSimpleName());
        context.setState(this);
    }
}
